﻿using AutoEntities;

namespace AutoMap
{
    /// <summary>
    /// 纯实例对象之间的映射
    /// </summary>
    public class EntityMapper
    {
        public static PeopleInfo Map(People entity)
        {
            return new PeopleInfo
            {
                Id = entity.Id,
                Name = entity.Name,
                Age = entity.Age,
                Address = entity.Address,
                Phone = entity.Phone,
                Email = entity.Email,
                Remark = entity.Remark,
                CreateDateTime = entity.CreateDateTime,
                CreatorId = entity.CreatorId
            };
        }
    }
}
